﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebShopDAL
{
    public class Article
    {
        
        public int ArticleID { get; set; }
        public string Text { get; set; }
        public float UnitPrice { get; set; }
        public string PictureUrl { get; set; }
        public string ArticleName { get; set; }
        public int CategoryID { get; set; }
        public int InStock { get; set; }
        public int TotalOrdered { get; set; }

        public Article(string text, float unitPrice, string pictureUrl, string articleName, int categoryID, int inStock, int totalOrdered = 0, int articleID = 0)
        {
            Text = text;
            UnitPrice = unitPrice;
            ArticleName = articleName;
            PictureUrl = pictureUrl;
            CategoryID = categoryID;
            InStock = inStock;
            TotalOrdered = totalOrdered;
            ArticleID = articleID;
            
        }
        public Article(){}

        public override string ToString()
        {
            return string.Format("{0}", ArticleName);
        }
    }
}
